const state = {
    // 评论类型  topic 评论帖子 comment 评论评论
    type: "topic",
    topic: {},
    comment: {},
    toUserId: 0,
    showBox:true
}

// getters
const getters = {
}

// actions
const actions = {
    publish() {
        console.log("actions")
    }
}

// mutations
const mutations = {
    preparePublishComment(state, params) {
        state.from = params.from;
        state.to = params.from;
    }
}

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
}